#define _CRT_SECURE_NO_WARNINGS 1
int removeDuplicates(int* nums, int numsSize) {
    int pa = 0;
    int pb = pa + 1;
    while (pa < numsSize && pb < numsSize)
    {
        if (nums[pa] == nums[pb])
        {
            pb++;
        }
        else
        {
            pa++;
            nums[pa] = nums[pb];
        }
    }
    return pa + 1;
}